home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3301 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  47 lines

  1. Newsgroups: comp.sys.sun.admin,comp.sys.unix,comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: Yet more GCC 2.7.2 problems (SunOS 4).  Memmove is missing.
  5. Message-ID: <1996Jan27.072428.17415@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <310959EB.41C6@llnl.gov>
  11. Date: Sat, 27 Jan 1996 07:24:28 GMT
  12.  
  13. In article <310959EB.41C6@llnl.gov>, Sean Ahern <ahern@llnl.gov> writes:
  14. >Just to let you know what OS I'm on, uname -a gives me this:
  15. >SunOS spear.lln 4.1.3_U1 1 sun4c
  16. >
  17. >I've compiled and installed GCC 2.7.2 on this machine, but I've noticed that
  18. >I'm missing something important.  The memmove call is missing, it seems.  I get
  19. >unresolved references when I attempt to compile code that uses memmove.
  20. >
  21. >    gcc -o foo foo.c -ldl
  22. >    ld: Undefined symbol 
  23. >       _memmove 
  24. >
  25. >Looking around the configuration for sun and the source code for gcc would lead
  26. >me to believe that memmove should be in the libgcc.a libraries, but I can't
  27. >seem to find it.  I also can't seem to find anything mentioning this on the Web
  28. >or in any FAQ.
  29. >
  30. >Does anyone know what I might be doing wrong here?
  31.  
  32. Your question is answered in the FAQ. Please get it from rtfm.mit.edu
  33. and look at question 13.24 and its answer (certainly the part that
  34. begins with "Contrariwise, ...").
  35.  
  36. Note that the arguments to the two functions described are slightly
  37. different ... so write your "translator" macro carefully!       :-)
  38.  
  39.                                 Z
  40.  
  41.  
  42. -- 
  43. -------------------------------------------------------------------------
  44. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  45. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  46. -------------------------------------------------------------------------
  47.